package com.bdqn;

import com.bdqn.pojo.User;

/**
 * HelloSpring
 *
 * @author LILIBO
 * @since 2022-10-09
 */
public class HelloSpring {

    private String hello;

    private User user;

    public HelloSpring() {

    }

    /**
     * 带参构造函数
     *
     * @param hello
     */
    public HelloSpring(String hello) {
        this.hello = hello;
    }

    public void print() {
        System.out.println("Spring Say: " + hello + "\n" + user.toString());
    }

    public String getHello() {
        return hello;
    }

    public void setHello(String hello) {
        this.hello = hello;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

}
